package net.zjitc.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.zjitc.demo.dao.BookDao;
import net.zjitc.demo.domain.Book;
import net.zjitc.demo.service.BookService;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl extends ServiceImpl<BookDao, Book> implements BookService {

    @Override
    public void Update() {
        QueryWrapper<Book> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("type","lll");
        Book book=new Book();
        book.setType("小说");
        this.update(book,queryWrapper);
    }
}
